Skip to main content

If - Else

If conditions are used to make decisions of which next flows to run. When the condition inside if is true, the flows connected on if node's if bubble (1st bubble) runs and when false, the flows connected on else bubble (2nd bubble) run.

If & Else

To use an if condition in your flow:

  1. Pick and drop an if node.
  2. Open its properties.
  3. Write the condition eg. a == 5. Refer Expressions to learn more about conditions.
  4. Connect the flow you want to run on condition = true to the 1st bubble i.e. if bubble of the if node.
  5. Similarly connect the flor you want to run on condition = false to the 2nd bubble i.e. else bubble.

node props


Else If

You can perform more conditional checks around the same if node by creating a nested if or an else if.

"If Node" Inside a Loop

node props


When inside a loop, the if node's all output flows, from each branch, should be sequentialised by ending the flows at 1 single point within the loop as mentioned in Loops.